package com.innovation.chengzhangriji.http;

import com.google.gson.annotations.SerializedName;
import com.innovation.library.http.InnovationRequestBody;

public class InviteCompleteRequest extends BaseTokenRequest {

    public static final String PATH = BaseRequest.PATH + "api/Handle_Invitation";

    private int inviteId;

    private int babyId;

    private int inviteState;

    public int getInviteId() {
        return inviteId;
    }

    public void setInviteId(int inviteId) {
        this.inviteId = inviteId;
    }

    public int getBabyId() {
        return babyId;
    }

    public void setBabyId(int babyId) {
        this.babyId = babyId;
    }

    public int getInviteState() {
        return inviteState;
    }

    public void setInviteState(int inviteState) {
        this.inviteState = inviteState;
    }

    @Override
    protected InnovationRequestBody getInnovationRequestBody() {
        InviteCompleteRequestBody body = new InviteCompleteRequestBody();
        body.setPhone(getPhone());
        body.setToken(getToken());
        body.setInviteId(getInviteId());
        body.setBabyId(getBabyId());
        body.setInviteState(getInviteState());
        return body;
    }

    private class InviteCompleteRequestBody extends BaseTokenRequestBody {

        @SerializedName("InvitationID")
        private int inviteId;

        @SerializedName("BabyID")
        private int babyId;

        @SerializedName("InvitationState")
        private int inviteState;

        private InviteCompleteRequestBody() {
            setSv(BaseRequestConfig.SV_INVITE_COMPLETE);
        }

        public int getInviteId() {
            return inviteId;
        }

        public void setInviteId(int inviteId) {
            this.inviteId = inviteId;
        }

        public int getBabyId() {
            return babyId;
        }

        public void setBabyId(int babyId) {
            this.babyId = babyId;
        }

        public int getInviteState() {
            return inviteState;
        }

        public void setInviteState(int inviteState) {
            this.inviteState = inviteState;
        }
    }
}
